/**  
 * 
 * @Title:  PairVo.java   
 * @Package com.bicon.datamanager.vo   
 * @Description:    TODO(用一句话描述该文件做什么)   
 * @author: 123774135@qq.com     
 * @date:   2018年7月24日 上午9:09:01   
 * @version V1.0 
 * @Copyright: 2018 www.tydic.com Inc. All rights reserved. 
 * 
 */  
package com.bicon.base.data.util;

/**   
 * @ClassName:  PairVo   
 * @Description:TODO(这里用一句话描述这个类的作用)   
 * @author: 123774135@qq.com 
 * @date:   2018年7月24日 上午9:09:01   
 *     
 * @Copyright: 2018 
 * 
 */
public class PairVo<S,E> implements java.io.Serializable{

	/**   
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)   
	 */ 
	private static final long serialVersionUID = 1047934190400760222L;
	
	
	private S start;
	
	private E end;
	
	public PairVo() {
		
	}
	
    public PairVo(S start,E end) {
		this.start = start;
		this.end = end;
	}

	public S getStart() {
		return start;
	}

	public void setStart(S start) {
		this.start = start;
	}

	public E getEnd() {
		return end;
	}

	public void setEnd(E end) {
		this.end = end;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((end == null) ? 0 : end.hashCode());
		result = prime * result + ((start == null) ? 0 : start.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PairVo<?, ?> other = (PairVo<?, ?>) obj;
		if (end == null) {
			if (other.end != null)
				return false;
		} else if (!end.equals(other.end))
			return false;
		if (start == null) {
			if (other.start != null)
				return false;
		} else if (!start.equals(other.start))
			return false;
		return true;
	}
    
    

}
